package com.stox.core.ui.swing.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.SwingUtilities;

public class ExitAction implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent e) {
		exit();
	}
	
	public void exit(){
		SwingUtilities.invokeLater(new Runnable(){
			@Override
			public void run() {
				System.exit(0);
			}
		});
	}
	
}
